@extends('home.mainlayout')
@section('css')
    <style>
        input{
            width:380px;
            height:48px;
            text-align:center;
            line-height:48px;
            font-size:24px;
        }
        #eth{
            width:500px;
            background:rgba(255,255,255,0.2);
            color:#FFF;
            margin-bottom:20px;
        }
        #eths1{
            width:500px;
            background:rgba(255,255,255,0.2);
            color:#FFF;
            margin-bottom:20px;
        }

    </style>
    @endsection
@section('content')
<div id="biaoti">我的EDU</div>
<div align="center" style="color:#FFF; margin:20px; font-weight:900; font-size:16px">
    <div>当前ＥＤＵ余额：{{$res['edu_amount']}}</div>
    <h2>提币前确认你的提币地址</h2>
    <div style="margin:20px; line-height:50px">
        <form action="myedu/do-tx" method="post">
            {{csrf_field()}}
            <input name="jimi" type="hidden" value="5e30a4876e">
            <label>提币地址：</label><input placeholder="提币地址" maxlength="50" autocomplete="off" name="txurl" id="eth" type="text" value="" /><br>
            <label>提币数量：</label><input placeholder="数量" maxlength="15" autocomplete="off" name="num" id="eths1" type="text" value="" /><br />
            <button type="submit" class="white">确认提币</button>
        </form>
    </div>
</div>
<table class="hongtable"><caption>我的ＥＤＵ</caption>
    <tr><th>提币</th><th>数量</th><th>发币时间</th></tr>
    @if(!empty($txlist['data']))
      @foreach($txlist['data'] as $v)
           <tr>
               <td>@if($v['tx_state']==1) 成功 @else 审核中 @endif</td>
               <td>{{$v['tx_amount']}}</td>
               <td>{{$v['created_at']}}</td>
           </tr>
      @endforeach
    @else
        <tr><td colspan="3">暂无数据</td></tr>
    @endif
</table>
<div class="page">
    @if(count($txlist['pageNoList'])>2)
        @foreach($txlist['pageNoList'] as $v)
            <a href="" @if($v==$txlist['current_page']) class="active" @endif>{{$v}}</a>
        @endforeach
    @endif
</div>
<script>
    var message = "{{Session::get('message')}}";
    $(window).ready(function () {
        if (message) {
            layer.msg(message, {
                time: 3000 //2秒关闭（如果不配置，默认是3秒）
            });
        }
    });
</script>
@endsection
